<template>
    <div>
          <el-card >
            <div slot="header"  class="card-header clearfix">
                <span>打印机</span>
                <el-button style="float: right;padding:3px 0" type="text">新建打印机</el-button>
            </div>
            <el-table :data="tableData" stripe style="width: 100%">
                <el-table-column prop="name" label="打印机" width="100">  </el-table-column>
                <el-table-column prop="type" label="类型">  </el-table-column>
                <el-table-column prop="number" label="设备号码">  </el-table-column>
                <el-table-column prop="status" label="状态" >  </el-table-column>
                <el-table-column  fixed="right"  label="操作"  width="100">
                    <template slot-scope="id">                        
                        <el-button type="text" size="small">编辑</el-button>
                        <el-button  type="text" size="small" @click="deleteGoods(id)">删除</el-button>
                    </template>
                </el-table-column>
            </el-table>         
        </el-card>     
    </div>
</template>
<script>
export default {
    data(){
        return {
            tableData: [{
                type: '新型E4彩色打印机',
                name: '365',
                number: 'HB52695',
                status:'连接中'
                },
                {
                type: '新型E4彩色打印机',
                name: '365',
                number: 'HB52695',
                status:'连接中'
                },
                {
                type: '新型E4彩色打印机',
                name: '365',
                number: 'HB52695',
                status:'连接中'
                },
                {
                type: '新型E4彩色打印机',
                name: '365',
                number: 'HB52695',
                status:'连接中'
                }] 
        }
    }
}
</script>

<style lang="scss" scoped>

</style>

